package top.braycep.bean;

import lombok.Data;
import org.beetl.sql.annotation.entity.AutoID;
import org.beetl.sql.annotation.entity.Table;
import org.beetl.sql.annotation.entity.UpdateIgnore;
import org.beetl.sql.fetch.annotation.FetchOne;

@Table(name = "table_files")
@Data
public class JarInnerFile {
    @AutoID
    @UpdateIgnore
    private Long id;
    private String realpath;
    private String mappedpath;
    private String rule;

    @UpdateIgnore
    private Long jarId;

    @FetchOne("jarId")
    private JarFile jarFile;

    public JarInnerFile(String realpath) {
        this.realpath = realpath;
    }

    public JarInnerFile() {

    }

    @Override
    public String toString() {
        return "JarInnerFile{" +
                "id=" + id +
                ", realpath='" + realpath + '\'' +
                ", mappedPath='" + mappedpath + '\'' +
                ", rule='" + rule + '\'' +
                ", jarId=" + jarId +
                '}';
    }
}
